package com.lou.springboot.service;

import com.lou.springboot.common.PageResult;
import com.lou.springboot.entity.Blog;
import com.lou.springboot.entity.BlogDetailVO;
import com.lou.springboot.entity.SimpleBlogListVO;
import com.lou.springboot.utils.PageUtil;

import java.util.List;

/**
 * Created by Guaguaerhao on 2020/7/15 00:03
 */
public interface BlogService {
    Object saveBlog(Blog blog);
    String updateBlog(Blog blog);
    boolean deleteBatch(Long[] blogId);
    Blog getBlog(Long blogId);
    BlogDetailVO getBlogDetail(Long blogId);
    boolean increaseBlogViews(Long blogId);
    List<SimpleBlogListVO> getBlogListForIndexPage(Integer type);
    PageResult getBlogList(PageUtil pageUtil);
    PageResult getBlogsForIndexPage(int page);
    PageResult getBlogsPageBySearch(String keyword, int page);
    PageResult getBlogsPageByTagName(String tagName, int page);
    PageResult getBlogsPageByCategoryName(String categoryName, int page);
}
